package lingou.homework.postbar.domain;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

public class Post {

  @TableId(type = IdType.AUTO)
  private Long postId;
  private Long userId;
  private java.sql.Timestamp time;
  private Long type;
  private String link;
  private Long likes;
  private Long dislikes;
  private Integer status;
  private Integer anon;
  private Long snapshotId;
  private String title;
  private Integer draw;


  public Long getPostId() {
    return postId;
  }

  public void setPostId(Long postId) {
    this.postId = postId;
  }


  public Long getUserId() {
    return userId;
  }

  public void setUserId(Long userId) {
    this.userId = userId;
  }


  public java.sql.Timestamp getTime() {
    return time;
  }

  public void setTime(java.sql.Timestamp time) {
    this.time = time;
  }


  public Long getType() {
    return type;
  }

  public void setType(Long type) {
    this.type = type;
  }


  public String getLink() {
    return link;
  }

  public void setLink(String link) {
    this.link = link;
  }


  public Long getLikes() {
    return likes;
  }

  public void setLikes(Long likes) {
    this.likes = likes;
  }


  public Long getDislikes() {
    return dislikes;
  }

  public void setDislikes(Long dislikes) {
    this.dislikes = dislikes;
  }


  public Integer getStatus() {
    return status;
  }

  public void setStatus(Integer status) {
    this.status = status;
  }


  public Integer getAnon() {
    return anon;
  }

  public void setAnon(Integer anon) {
    this.anon = anon;
  }


  public Long getSnapshotId() {
    return snapshotId;
  }

  public void setSnapshotId(Long snapshotId) {
    this.snapshotId = snapshotId;
  }


  public String getTitle() {
    return title;
  }

  public void setTitle(String title) {
    this.title = title;
  }


  public Integer getDraw() {
    return draw;
  }

  public void setDraw(Integer draw) {
    this.draw = draw;
  }

  @Override
  public String toString() {
    return "Post{" +
            "postId=" + postId +
            ", userId=" + userId +
            ", time=" + time +
            ", type=" + type +
            ", link='" + link + '\'' +
            ", likes=" + likes +
            ", dislikes=" + dislikes +
            ", status=" + status +
            ", anon=" + anon +
            ", snapshotId=" + snapshotId +
            ", title='" + title + '\'' +
            ", draw=" + draw +
            '}';
  }
}
